﻿using System;
using OdaOperation.Core.Creators;
using OdaOperation.Core.Parameters;

namespace OdaOperation.Extends
{
    public static class TrimmingExtend
    {
        public static void Trimming(this DbOperation operation, string file, params TrimmingItemParameter[] paramter)
        {
            if (paramter == null || paramter.Length == 0)
            {
                throw new AggregateException("paramter不能能空");
            }

            new TrimmingCreator(operation, file).Trimming(paramter);
        }
    }
}